package com.xuan.webfinally.service.impl;

import com.xuan.webfinally.entity.EquipmentStatisticsRequest;
import com.xuan.webfinally.entity.EquipmentStatisticsResponse;
import com.xuan.webfinally.entity.SlopeDeviceInfo;
import com.xuan.webfinally.mapper.SlopeCrackDataMapper;
import com.xuan.webfinally.mapper.SlopeDeviceInfoMapper;
import com.xuan.webfinally.mapper.SysUserMapper;
import com.xuan.webfinally.service.ISlopeDeviceInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 边坡设备信息表 服务实现类
 * </p>
 *
 * @author gyuxuan
 * @since 2025-05-18
 */
@Service
public class SlopeDeviceInfoServiceImpl extends ServiceImpl<SlopeDeviceInfoMapper, SlopeDeviceInfo> implements ISlopeDeviceInfoService {

    @Autowired
    private SlopeCrackDataMapper slopeCrackDataMapper;

    @Autowired
    private SysUserMapper sysUserMapper;

    @Autowired
    private SlopeDeviceInfoMapper slopeDeviceInfoMapper;

    @Override
    public Long getDeptIdByUserName(String username) {
        return sysUserMapper.selectDeptId(username);
    }

//    @Override
//    public EquipmentStatisticsResponse getStatistics(EquipmentStatisticsRequest request) {
//        return slopeCrackDataMapper;
//    }
}
